package com.lam.common.validate.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.lam.common.validate.validator.DictValidator;

/**
 * 类对象的字典校验
 * 只支持在实体类或者对象接受类上面
 * 
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {DictValidator.class})
public @interface DictCheck {
	
	String message() default "无效的字段值";

	Class<?>[] groups() default {};
	
	Class<? extends Payload>[] payload() default {};

}
